package cn.fanqinghong.ymcc.feignClient;

import cn.fanqinghong.ymcc.domain.Blacklist;
import cn.fanqinghong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * FAN
 * 2022/7/17  15:35
 */
@FeignClient(value = "service-common",fallbackFactory = BlacklistFallbackFactory.class)
@RequestMapping("/blacklist")
public interface BlacklistFeignClient {

    /**
     * 手机号获取对象
     */
    @RequestMapping(value = "/getPhone/{phone}",method = RequestMethod.GET)
    public JSONResult getPhone(@PathVariable("phone") String phone);
}
